/**按需引入element-ui */
import Vue from 'vue';
import {
  Select,
  Option,
  OptionGroup,
  Autocomplete,
  Input,
  Row,
  Message,
  Upload,
  Col,
  Form,
  Radio,
  RadioGroup,
  FormItem,
  TabPane,
  Tabs,
  Button,
  Loading,
  MessageBox
} from 'element-ui'
const element = {
  install: function (Vue) {
    Vue.use(Autocomplete)
    Vue.use(Select)
    Vue.use(Option)
    Vue.use(OptionGroup)
    Vue.use(Input)
    Vue.use(Loading)
    Vue.use(Radio)
    Vue.use(RadioGroup)
    Vue.use(Form)
    Vue.use(TabPane)
    Vue.use(Tabs)
    Vue.use(Row)
    Vue.use(Col)
    Vue.use(Form)
    Vue.use(FormItem)
    Vue.use(Upload)
    Vue.use(Button)
  }
}
// Vue.prototype.$loading = Loading.service;
Vue.prototype.$message = Message;
Vue.prototype.$confirm=MessageBox.confirm;
export default element